﻿<!doctype html>
<html>
<!-- InstanceBegin template="/Templates/template1.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta charset="utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>发帖审核</title>
<!-- InstanceEndEditable -->
<script type="text/javascript" src="../js/common.js"></script>
<script type="text/javascript" src="../js/checkLogin.js"></script> 
<link href="../css/Pager.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/jquery.pager.js"></script>
<script type="text/javascript" src="../js/gbRst.js"></script>
<script type="text/javascript" src="../js/doubleDate2.0.js"></script>
	<script type="text/javascript" src="../js/utils.js"></script>
<script type="text/javascript" src="../js/ajaxfileupload.js"></script> 
<script type="text/javascript" src="../js/ImageBrowsing.js"></script> 
<script type="text/javascript" src="../js/checkLogin.js"></script> 
	<script charset="utf-8" src="../js/kindeditor.js"></script>
	<script charset="utf-8" src="../js/lang/zh_CN.js"></script>
	<script charset="utf-8" src="../js/editor.js"></script>
	<script charset="utf-8" src="../js/find.js"></script>
	<script charset="utf-8" src="../js/jquery.qqFace.js"></script>
	<link rel="stylesheet" href="../css/default.css" />
<link href="../css/style.css" type="text/css" rel="stylesheet" />

<script type="text/javascript">
$(function(){
	$(".hideDiv").each(function(){
		addMargin($(this));
	})
	$('.doubledate').kuiDate({
		className:'doubledate',
		isDisabled: "1"  // isDisabled为可选参数，“0”表示今日之前不可选，“1”标志今日之前可选
	});
	browse('upload','imgSrc',96,96);
	restForm();
	$("input[type='file']").change(function(){
		$(this).prev().prev().val($(this).val())
	})
});

var shopPageCount=0;
var shopCount=0;
var pageCount=0;
var pageIndex=1;

$(function(){
	$("#shopIsChoosed").click(function(){
		if($("#shopIsChoosed").is(":checked")){
			$("#shopName").attr("disabled",false);
			$("#research").attr("disabled",false);
			
		}else{
			$("#shopName").attr("disabled",true);

		}
	});
	

	$(".hideDiv").each(function(){
		addMargin($(this));
	})
	
});
function bclicks(obj){
	var $first=obj.parent("td").parent("tr").children("td:first");
	var id=$first.html();
	var name=$first.next().html();
	//$("#shopName").children("option").blur();
	getParamToshopS(id,name);
}

function getParamToshopS(id,name){
	var shopflag=$("#shopflag").val();
	if(shopflag==1){
		$("#shopName2").val(name);
		$("#shopId").val(id);
		$("#keyId").html("")
		chooseKeyId();
	}else{
		
	var htm="<option value='"+id+"'>"+name+"</option>";
	$("#shopName").html(htm);
	$("#shopName").val(id);
	
	chooseKeyId2();
	}
	closeShopShow();
}

function closeShopShow(){
	$("#shopShow,#yinying").hide();
	$("#searchName").val("");
}
function InitShopList(shopPageIndex){
	var shopName=$("#searchName").val().replace(/\s/gi,'');
	$.ajax({
		type : "post",
		async:false,
		data :'name='+shopName,
		datatype : "json",
		url : "../shop/find/shopList/" + shopPageIndex + "/5",
		success : function(data) {
			var rst = JSON.parse(data);
			 if(IsEmpty(rst)){
					art.dialog({fixed:true, lock: true,content:"查询出错",icon:'error',ok:true});	
					return false;
					}
					if(rst.state==0){
						$("#shopList tbody tr").remove();

						initShopTable(rst);
						$("table[id='shopList'] tbody tr").each(function(){
							$(this).children("td:last").css("text-align","center").append("<input type='button' class='common_btn' value='选择' onclick='bclicks($(this))'>");

						})	
						if(rst.result.len > 0){
							 var shu = rst.result.len;
							 shopCount = Math.ceil(shu/5);					
							 }else{
									shopCount==0;
							 }
						 $("#shopPager").pager({ pagenumber: ++shopPageIndex, pagecount: shopCount, buttonClickCallback: ShopPageClick });
						 addMargin($("#shopShow"));	
						 }else if(rst.state==1){
						art.dialog({fixed:true, lock: true,content:rst.msg,icon:'error',ok:true});	
					}else{
						checkStateShowErrorMsgAndDealResult(data);
					}
		}	
	});
	
		
	
}
ShopPageClick = function(pageclickednumber) {
    $("#shopPager").pager({ pagenumber: --pageclickednumber, pagecount: shopCount, buttonClickCallback: ShopPageClick });
    $("#result").html("Clicked Page " + pageclickednumber);
    InitShopList(pageclickednumber);
};
function search2(){
	InitShopList(0);
}

function initShopTable(json){
	if(json!=null && json.state==0){
		var params = new Array("id", "name","mp","contact");
		Loadtable(json,params,"shopList");
	}
}
function Loadtable(json, params, tableId){
	var phArray = new Array();
	var count = 0;
	if (params != null) {
		$(params).each(function(pIndex, pData) {
			$.each(json.result.head, function(hIndex, hData) {
				if (pData == hData) {
					phArray[count++] = hIndex;
				}
			});
		});
	}
	
	if (json.result.data != null) {
		$.each(json.result.data, function(index, dt) {
			$("table[id='" + tableId + "']").append("<tr></tr>");
			$(phArray).each(function(phIndex, data) {
				$.each($(dt), function(dtIndex, d) {
					if (dtIndex == data) {
						$("table[id='" + tableId + "'] tr:last").append("<td>" +  (d === null||d == "null" ? " " : d) + "</td>");
					}
				});
			});
		});
		
	}
	

	
}

function showShopList(shopflag){
	$("#shopflag").val(shopflag);
	$("#shopName").blur();
	$("#shopShow,#yinying").show();
	InitShopList(0);
}

function getFucnMenuDetailList(page){
	if(IsEmpty(page)){
		pageIndex=1
	}else{
		pageIndex = page;
	}
	var searchTitle=$("#searchTitle").val();
	var dtBegin=$("#dtBegin").val();
	var dtEnd=$("#dtEnd").val();
	var searchUserName=$("#searchUserName").val();
	var searchStatus=$("#searchStatus").val();
	var param="title="+searchName
	
	if($("#shopIsChoosed").is(":checked")){	
		shopId=$("#shopName").val();
		if(shopId!=""&&shopId!=null){
			param={'title':searchTitle,'shopId':shopId,'dtBegin':dtBegin,'dtEnd':dtEnd,'customerName':searchUserName,'status':searchStatus}
		}else{
			param={'title':searchTitle,'dtBegin':dtBegin,'dtEnd':dtEnd,'customerName':searchUserName,'status':searchStatus}
		}
	}else{
		param={'title':searchTitle,'dtBegin':dtBegin,'dtEnd':dtEnd,'customerName':searchUserName,'status':searchStatus}
	}
	 adList = _findInfo("../notes/find/noteList/"+(pageIndex -1)+"/10", param);
	if(adList.state==0){
		 _loadPage("pager", pageIndex, 10, adList, getFucnMenuDetailList, "NoResult")
		$("#sup").html("共"+adList.result.len+"条");	
		 $("#funcMenuList tbody").empty()
		 for ( var i = 0; i < adList.result.data.length; i++) {
			var htm = "<tr>"
				htm+="<td>"+_getStringOfJson(i, adList, "title")+"</td>"
				var content = _getStringOfJson(i, adList, "content");
				content = replace_em2 (content)
				htm+="<td>"+content+"</td>"
				
				htm+="<td><a href='javascript:void(0)' onclick='showImage("+_getStringOfJson(i, adList, "id")+")'>查看图片</a></td>"
				htm+="<td>"+_getStringOfJson(i, adList, "name")+"</td>"
				htm+="<td>"+_getStringOfJson(i, adList, "mp")+"</td>"
				htm+="<td>"+_getStringOfJson(i, adList, "createdTime")+"</td>"
				htm+="<td>"+_getStringOfJson(i, adList, "nums")+"</td>"
				htm+="<td>"+_getStringOfJson(i, adList, "discussNums")+"</td>"
				htm+="<td>"+_getStringOfJson(i, adList, "praiseNums")+"</td>"
				htm+="<td>"+_getStringOfJson(i, adList, "staName")+"</td>"
				var status = _getStringOfJson(i, adList, "status")
				if(status==0){
				htm+="<td><input class=\"common_btn red\" type=\"button\" value=\"未通过\" onclick='updateStatus("+getHeadIndexValue(i, adList, "id")+",1)' ><br><input class=\"del\" type=\"button\" value=\"删除\" onclick='popPoint("+getHeadIndexValue(i, adList, "id")+")' ><br><input class=\"del\" type=\"button\" value=\"回复\" onclick='hf("+getHeadIndexValue(i, adList, "id")+")' ></td>"
				}else{
					htm+="<td><input class=\"common_btn to_update\" type=\"button\" value=\"通过\" onclick='updateStatus("+getHeadIndexValue(i, adList, "id")+",0)' ><br><input class=\"del\" type=\"button\" value=\"删除\" onclick='popPoint("+getHeadIndexValue(i, adList, "id")+")' ><br><input class=\"del\" type=\"button\" value=\"回复\" onclick='hf("+getHeadIndexValue(i, adList, "id")+")' ></td>"
				}
				$("#funcMenuList tbody").append(htm)
		}
		 
	}
	
}

function hf(id){
	_hfId = id
	$('#yinying1,#replyShowDiv').show()

}


function reply(){
	var content = $("#replyShow").val()
		var heads = new Array("content","noteId")
	var datas = new Array(content,_hfId)
	var json = _getJsonParseInsertStr(heads, datas);

	var dt = _PostInfoRstNoMessage("../discuss/insert/insertInfo", {'data':json});
	if(IsNotEmpty(dt)&&dt.state==0){
		$('#yinying1,#replyShowDiv').hide()
		$("#replyShow").val("")
		getFucnMenuDetailList(1);
		art.dialog({fixed:true, lock: true,content:"回复成功",icon:'succeed',ok:true});	
	}else{
		art.dialog({fixed:true, lock: true,content:"回复失败",icon:'error',ok:true});	
	}
}

function updateStatus(id,status){
	var heads = new Array("status","id");
	var datas = new Array(status,id);
	var json = _getJsonParseEditStr(heads, datas);
	var dt  = _editInfo("../notes/edit/updateStatus", {'data':json})
	if(dt.state==0){
		getFucnMenuDetailList(pageIndex);
	}
	
}

function showImage(id){
	var dt = _findInfo("../notes/find/imageList", {'id':id})
	if(dt.state==0){
		if(dt.result.data.length==0){
			alert("该贴不含图片")
			return false;
		}
		var imgList = new Array();
		for ( var i = 0; i < dt.result.data.length; i++) {
			imgList.push(_getStringOfJson(i, dt, "imageUrl"))
		}
		showFormerImg(imgList)
	}
}

function toAdd(){
	
	restForm();
	var shopId= $("#shopName").val()
	if(IsEmpty(shopId)){
		artError("请先选择店面");
		return false;
	}
	var shopName = $("#shopName").text()
	$("#shopName2").val(shopName);
	$("#shopId").val(shopId);
	$("#doflag").val(1);
	$("#save_btn").val("立即提交");
	chooseKeyId();

	$("#yinying1,#mainMenu").show();
	
}

function updateAd(id){
	
	for ( var i = 0; i < adList.result.data.length; i++) {
	var ids= getHeadIndexValue(i, adList, "id");
	if(ids==id){
		
	
	var shopId=getHeadIndexValue(i, adList, "shopId");
	var shopName=getHeadIndexValue(i, adList, "shopName");
	var KeyId=getHeadIndexValue(i, adList, "locationId");
	var keyName=getHeadIndexValue(i, adList, "locationName");
	var Title=getHeadIndexValue(i, adList, "title");
	var Description=getHeadIndexValue(i, adList, "memo");
	var PicUrl=getHeadIndexValue(i, adList, "imageUrl");
	var Url=getHeadIndexValue(i, adList, "indexUrl");
	var Status=getHeadIndexValue(i, adList, "status");
	var ValidDateTime=getHeadIndexValue(i, adList, "validDateTime");;
	}
	}
	$("#doflag").val(2)
	$("#updateId").val(id);
	 $("#Title").val(Title)
	 $("#shopId").val(shopId);
	 $("#Description").val(Description);
	$("#Status").val(Status);
	$("#ValidDateTime").val(ValidDateTime.substring(0,10));
	$("#shopName2").val(shopName)
	chooseKeyId();
	$("#keyId").val(KeyId);
	 $("#Url").val(Url)
	 $("#imgSrc img").attr("src",PicUrl)
	 $("#imgName").val(PicUrl)
		getHtmlByUrl(Url)
	 
	$("#save_btn").val("保存修改")
			$("#yinying1,#mainMenu").show();
}

function save(){
	var doflag=$("#doflag").val();
	if(doflag==1){
		addInfo();
	}else if(doflag==2){
		updateInfo();
	}else{
		art.dialog({fixed:true, lock: true,content:"页面出错",icon:'error',ok:true});	
		
		getFucnMenuDetailList();
	}
}

function addInfo(){
	var Title=$("#Title").val()
	var shopId=$("#shopId").val();
	var Description =$("#Description").val();
	var Status=$("#Status").val();
	var ValidDateTime =$("#ValidDateTime").val();
	var keyId=$("#keyId").val();
	var ValidDateTime=$("#ValidDateTime").val();
	var Url=$("#Url").val()
	
	if(IsEmpty(Title)){
		art.dialog({fixed:true, lock: true,content:"标题不能为空",icon:'error',ok:true});
		$("#Title").focus();
		return false;
	}else{
		if(Title.length>50){
			art.dialog({fixed:true, lock: true,content:"标题过长(50字以内)",icon:'error',ok:true});
			$("#Title").focus();
			return false;	
		}
	}
	if(IsEmpty(shopId)){

		art.dialog({fixed:true, lock: true,content:"请选择店铺",icon:'error',ok:true});

		$("#shopName").val("")
		return false;
	}

	if(IsEmpty(keyId)){
		art.dialog({fixed:true, lock: true,content:"请选择菜单选项",icon:'error',ok:true});
		return false;
	}
	if(IsEmpty(ValidDateTime)){
		art.dialog({fixed:true, lock: true,content:"请点选截止时间",icon:'error',ok:true});
		return false;
	}
	if(IsEmpty(Description)){
		art.dialog({fixed:true, lock: true,content:"请输入简介",icon:'error',ok:true});
		$("#Description").focus();
		return false;
	}else{
		if(Description.length>100){
			art.dialog({fixed:true, lock: true,content:"简介过长(100字以内)",icon:'error',ok:true});
			$("#Description").focus();
			return false;	
		}
	}

	var heads=new Array("memo","title","locationId","shopId","validDateTime","status","number");
	var datas=new Array(Description,Title,keyId,shopId,ValidDateTime,Status,0);
	
	
	var parser = new Object();
	var jsonParserStr = null;
	if (IsNotEmpty(datas)){
		addToParser(heads, datas, "add" , parser);
		jsonParserStr =  JSON.stringify(parser);
	}
	 $("#save_btn").attr("disabled",true)
	$.post("../ad/insert",{"data":jsonParserStr,"htmlStr":editorHtml}, function(data) {
		 $("#save_btn").attr("disabled",false)
		var dt = JSON.parse(data);
			
				 if(IsEmpty(dt)){
				art.dialog({fixed:true, lock: true,content:"添加出错",icon:'error',ok:true});	
				return false;
				}
				if(dt.state==0){
					uploadImage(getHeadIndexValue(0, dt, "id"))
				}else if(dt.state==1){
					art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});
				}else{
					checkStateShowErrorMsgAndDealResult(data);
				}
		
	});
}


function updateInfo(){
	var id=$("#updateId").val()
	if(IsEmpty(id)){
		art.dialog({fixed:true, lock: true,content:"页面出错",icon:'error',ok:true});
		getFucnMenuDetailList();
		return false
	}

	var Title=$("#Title").val()
	var shopId=$("#shopId").val();
	var Description =$("#Description").val();
	var Status=$("#Status").val();
	var ValidDateTime =$("#ValidDateTime").val();
	var keyId=$("#keyId").val();
	var ValidDateTime=$("#ValidDateTime").val();
	var Url=$("#Url").val()
	if(IsEmpty(Title)){
		art.dialog({fixed:true, lock: true,content:"标题不能为空",icon:'error',ok:true});
		$("#Title").focus();
		return false;
	}else{
		if(Title.length>50){
			art.dialog({fixed:true, lock: true,content:"标题过长(50字以内)",icon:'error',ok:true});
			$("#Title").focus();
			return false;	
		}
	}
	if(IsEmpty(shopId)){

		art.dialog({fixed:true, lock: true,content:"请选择店铺",icon:'error',ok:true});

		$("#shopName").val("")
		return false;
	}

	if(IsEmpty(keyId)){
		art.dialog({fixed:true, lock: true,content:"请选择广告位置",icon:'error',ok:true});
		return false;
	}
	if(IsEmpty(ValidDateTime)){
		art.dialog({fixed:true, lock: true,content:"请点选截止时间",icon:'error',ok:true});
		return false;
	}
	if(IsEmpty(Description)){
		art.dialog({fixed:true, lock: true,content:"请输入简介",icon:'error',ok:true});
		$("#Description").focus();
		return false;
	}else{
		if(Description.length>100){
			art.dialog({fixed:true, lock: true,content:"简介过长(100字以内)",icon:'error',ok:true});
			$("#Description").focus();
			return false;	
		}
	}
	var heads=new Array("memo","title","locationId","shopId","validDateTime","status","id");
	var datas=new Array(Description,Title,keyId,shopId,ValidDateTime,Status,id);
	
	var parser = new Object();
	var jsonParserStr = null;
	if (IsNotEmpty(datas)){
		addToParser(heads, datas, "edit" , parser);
		jsonParserStr =  JSON.stringify(parser);
	}
	 $("#save_btn").attr("disabled",true);
	$.post("../ad/edit",{"data":jsonParserStr,"htmlStr":editorHtml}, function(data) {
		 $("#save_btn").attr("disabled",false)
		var dt = JSON.parse(data);	
		 if(IsEmpty(dt)){
				art.dialog({fixed:true, lock: true,content:"修改出错",icon:'error',ok:true});	
				return false;
				}
				if(dt.state==0){
					uploadImage(id);	
					 }else if(dt.state==1){
				art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});
				}else{
					checkStateShowErrorMsgAndDealResult(data);
				}
		
	});
	
}

function deleteInfo(id){

	$.post("../notes/del",{"id":id}, function(data) {
		var dt = JSON.parse(data);
		if(IsEmpty(dt)){
			art.dialog({fixed:true, lock: true,content:"删除出错",icon:'error',ok:true});	
			return false;
			}
			if(dt.state==0){
				getFucnMenuDetailList();
				 }else if(dt.state==1){
			art.dialog({fixed:true, lock: true,content:dt.msg,icon:'error',ok:true});
			}else{
				checkStateShowErrorMsgAndDealResult(data);
			}
	});
}

function uploadImage(id){
	
	var arrayObj = new Array();
	
	$.each($(".file"), function(index, filedata) {
		if ($(filedata).val().length > 0) {
			arrayObj.push($(filedata).attr("id"));
		}
	});

	if(arrayObj.length==0&&($("#doflag").val())==2){
			art.dialog({fixed:true, lock: true,content:"操作成功",icon:'succeed',ok:true});				
			restForm();
			$("#yinying1,#mainMenu").hide();
			getFucnMenuDetailList(1);

	}else{
	$.ajaxFileUpload({
		url :"../ad/upload/image/ad/"+id,
		secureuri:false,
		fileElementId : arrayObj,
		dataType : 'json',
		success : function(data){
				
			if (data.state == 0) {
					art.dialog({fixed:true, lock: true,content:"操作成功",icon:'succeed',ok:true});				
					restForm();
					$("#yinying1,#mainMenu").hide();
					getFucnMenuDetailList();
			}else{
				$("#doflag").val(2);
				$("#updateId").val(id);
				art.dialog({fixed:true, lock: true,content:"图片上传失败,请重新编辑",icon:'error',ok:true});		
			}
		},
		error : function(data) {
			art.dialog({fixed:true, lock: true,content:"图片上传失败",icon:'error',ok:true});
			return false;
		}
	});
	}
}
	
	function restForm(){
 		 $(".reset").val("");
 		 $("#imgSrc img").attr("src","../images/img_activities1.jpg");
 		 $("#keyId").html("");
 		 $("#doflag").val(1)
 		 $("#save_btn").val("立即发布")
 		 $("#save_btn").attr("disabled",false)
 		 $("#upload").val("")
 		 editorHtml="";
		browse('upload','imgSrc',96,96);
		}
	
	
	function popPoint(id){
		art.dialog({fixed:true, lock: true,content:"确认删除该条数据？",icon:'question',ok: function(){ deleteInfo(id)},cancel:true});
		}

</script>


</head>

<body>
<!-- InstanceBeginEditable name="EditRegion3" --> 
<div id="yinying"></div>
<div id="yinying1"></div>
<div id="replyShowDiv" class="hideDiv">
			<div class="closeTop">
			<input id="memberId" type="hidden">
				<span id="closeThe"><img onclick="$('#yinying1,#replyShowDiv').hide()" src="../images/close.png"></span>
			</div>
			<div>
				<p>
					<label>回复客户：</label>
					<br />
					<textarea id="replyShow" style="width: 90%; height: 150px;"></textarea>
				</p>
				<p class="BottomBtn">
					<input type = "button" value="确定" onclick="reply()">
				</p>
			</div>
		</div>
<div id="shopShow" class="hideDiv">
    <div style="float:right;margin-bottom:5px;width:20px;height:20px;line-height:20px;text-align:center;background-color:#eee;margin-bottom:5px;border:1px solid #ccc;" > <span style="cursor: pointer;font-size: 14px;" onclick="closeShopShow();" >X</span> </div>
    <div class="bottom_search"><div class="serWrapper"><input type="text" id="searchName" class="txt"><strong class="refresh" onclick="$('#searchName').val('')">清空</strong></div><input class="common_btn" type="button" style="width:auto;margin-left:5px;" value="查询" onclick="search2()"></div>
    <table   id="shopList" cellpadding="4" cellspacing="0" border="1" width="100%">
    <thead>
    <tr>
    <th>店面ID</th>
    <th>店面名称</th>
    <th>电话</th>
    <th>操作</th>
    </tr>
    </thead>
    </table>
    	<div id="shopPager"></div>
    	<input type="hidden" id="shopflag" >
    </div>
<script type="text/javascript">
$(function(){
	refreshInput($(".serWrapper"));
		$(this).prev().prev().val($(this).val())
	})

</script>
<div class="member_search publish WX hideDiv" id='mainMenu'>
<div class="closeTop"><span onclick="closeParent($(this))" class="closeThe"><img src="../images/close.png"></span></div>
       <form name="fm1" action="#" target="post">
       	<input type="hidden" id="updateId">
       	<input type="hidden" id="doflag" value="1">
            <p><span>
	        店面：</span>
        <input type="text" id="shopName2" class="reset" readonly>
        <input type="hidden" id="shopId" class="reset">
        <input type="button" class="btn" value="…" onclick="showShopList(1)" >
      </p>
    <p><span>标题：</span>
      <input type="text" id="Title" class="reset">
    </p>
     <p><span>图片：</span>
        <input type="text" class="reset" id="imgName" readonly>
        <input type="button" class="btn" value="…">
        <input type="file" class="file reset" id="upload" name="upload">
        <span id="imgSrc" class="onlyImgSrc actorImg"> <img src="../images/img_activities1.jpg" ></span></p>
  <p><span>广告位置：</span>
        <select id="keyId"  ></select>
      </p>   <p><span>广告详细页：</span>
        <input type="text" id="Url"  class="reset" readonly>
        <input type="button" class="btn"  value="编辑页面" id="editIndex_btn" style="font-size:12px;font-weight:normal;"></p> 
    <p><span>截止日期：</span>
      <input type="text" readonly class="doubledate reset" id="ValidDateTime">
    </p><p><span>状态：</span>
   		<select id="Status"><option value="0">使用</option><option value="1">停用</option></select>
    </p>
    
      <p><span>内容简介：</span>
        &nbsp;<textarea id="Description" class="reset"></textarea>
      </p>
      <div class="BottomBtn">
        <input type="button"  value="立即提交" onclick="save()" id="save_btn">
      </div>
        </form>      
       </div>
<div class="container" id="container">
  <div class="container_R fr">
    <div class="place">贴子管理</div>
    <div class="member_search">
      <p><span>
        <input type="checkbox" id="shopIsChoosed" style="width:auto;height:auto;border:none;">店面：</span>
        <select id="shopName" onclick="showShopList()" disabled="disabled">
        </select>
        <span>标题：</span>
        <input type="text" id="searchTitle" class="absoluteTxt" >
        <span>发帖人：</span>
        <input type="text" id="searchUserName" class="absoluteTxt" >
		<p>
		     <span>截止时间：</span>
        <input type="text" readonly class="doubledate ipticon"  id="dtBegin"/>-
        <input type="text" readonly class="doubledate ipticon" id="dtEnd"/>
         <span>状态：</span>
        <select id="searchStatus"  >
        	<option value="">全部</option>
        	<option value="0">通过</option>
        	<option value="1">未通过</option>
        </select>
        		<input class="btn" id="research" name="查询" type="button" value="查询" onClick="getFucnMenuDetailList(1)" >
        
		</p>
      </div>
       <table width="100%" class="member_list" cellpadding="0" cellspacing="1" border="0" id="funcMenuList">
    	<caption><strong>贴子列表       <span id="sup">共0条</span>  </strong></caption>
    	<thead>
    	<tr>
    		<th >标题</th>
        	<th >内容</th>
        	<th >图片</th>
        	<th >发帖人</th>
        	<th >发帖人联系方式</th>
    		<th >发帖时间</th>
    		<th >浏览数</th>
    		<th >评论数</th>
    		<th >点赞数</th>
        	<th >状态</th>
        	<th >操作</th>
        </tr>
        </thead>
       	<tbody>
       		
       	</tbody>
    </table>
      <div id="NoResult"  class="Nothing" style="text-align:center;display: none;">无符合条件的数据！</div>
    <div id="pager"></div>
  </div>
  <div class="fc"></div>
</div>
<!-- InstanceEndEditable --> 
<script type="text/javascript" src="../js/header.js"></script> 
<script type="text/javascript" src="../js/left.js"></script> 
<script type="text/javascript" src="../js/footer.js"></script> 
<script type="text/javascript">
clearThis("absoluteTxt");
showTab(5,3);
</script>
</body>
<!-- InstanceEnd -->
</html>
